third-party-exp-api icon

third-party-exp-api

(0 reviews)

CI Request Capital Invest Accounts Link

Description: If success response is received from T24 and CAP.INVEST.ID is NULL, then MANAF must be triggered for requestAccountsLink with Capital Invest ID (from the incoming request) from Mule prc API. Success response to channel from MANAF will have “NewLink” in linkFlag field.

  • If success response is received from T24 and CAP.INVEST.ID is PRESENT, then error response must be triggered to channel saying “AlreadyLink”.
  • If we have a scenario not satisfying the above conditions,, then error response must be triggered to channel saying “LinkNotMatch”.

Mulesoft Request:

Headers:

Mandatory Headers: x-correlation-id, client_id, Authorization

Optional Headers: x-sub-channel-id, x-user-id, x-debug-flag, x-customer-id, client_secret, x-channel-id, x-bank-id

Paramaters:

URI Params: NA

Query Params: NA

Body:

{
    “capitalInvestId” : “7788”,
    “customerId”: “2045455”
}

Content-type: application/json, text/json

Mulesoft Response:

Success Response: (200)

{
    "status": {
        "success": true,
        "code": "200",
        "arabicMessage": "تمت العملية بنجاح",
        "englishMessage": "The Operation has been Successfully Completed"
    },
    “capitalInvestId” : 7788,
    “otp”: 1232,
    “linkFlag”: “NewLink”
}

Error Response: (From T24)

(400, 403, 404, 405, 406, 415, 500, 501)

{
    "status": {
        "success": false,
        "code": "400",
        "reasonCode": "BadRequest",
        "arabicMessage": "",
        "englishMessage": "Not exist",
        "backendError": "Not exist",
        "backendCode": "11"
    }
}

Error Response: (Link already exists)

{
    "status": {
        "success": false,
        "code": "400",
        "arabicMessage": "تمت العملية بنجاح",
        "englishMessage": "The Operation has been Successfully Completed"
  },
    “capitalInvestId” : 7788,
    “otp”:””,
    “linkFlag”: “AlreadyLinked”
}

Error Response: (Id Mismatch)

{
    "status": {
        "success": false,
        "code": "400",
        "arabicMessage": "تمت العملية بنجاح",
        "englishMessage": "The Operation has been Successfully Completed"
  },
    “capitalInvestId” : 7788,
    “otp”:””,
    “linkFlag”: “LinkNotMatch”
}

Reviews